<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport"
	content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link
	href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
	rel="stylesheet">
<link href="../css/indexjsp.css" rel="stylesheet">
<link href="../css/111.css" rel="stylesheet">
<link href="../css/animate.css" rel="stylesheet">
<title>撰写新文章</title>
<style>
.a {
	height: 100%;
	width: 100%;
}

.a_left {
	float: left;
	width: 15%;
	margin-left: 9%;
}

.panel-body {
	float: left;
	width: 75%;
	opacity: 0.8;
}

canvas {
	background-color: papayawhip;
}
</style>
<script type="text/javascript" src="../js/three.min.js"></script>
<script type="text/javascript" src="../js/one.js"></script>
</head>
<body>
	<nav class="navbar navbar-inverse">
		<div class="container-fluid">
			<div class="collapse navbar-collapse"
				id="bs-example-navbar-collapse-1">

				<ul class="nav navbar-nav">
					<li><a>博客</a></li>
					<li><a class="glyphicon glyphicon-comment">&nbsp;5</a></li>
					<li class="dropdown"><a href="#"
						class="dropdown-toggle glyphicon glyphicon-plus"
						data-toggle="dropdown" role="button" aria-haspopup="true"
						aria-expanded="false">&nbsp;新建</a>
						<ul class="dropdown-menu">
							<li><a>article</a></li>
							<li><a>media</a></li>
							<li><a>page</a></li>
							<li role="separator" class="divider"></li>
							<li><a>User</a></li>
						</ul></li>
				</ul>

				<ul class="nav navbar-nav navbar-right">
					<li><a href="../wd.jsp">返回</a></li>
					<li><a href="../exit.do">退出</a></li>
				</ul>
			</div>
		</div>
	</nav>
	<div class="a">
		<div class="a_left" style="margin-top: 80px;">
			<h2 style="margin-top: 30px;">你好,${currentUser.username }！</h2>
			<img style="margin-top: 30px;" alt=""
				src="../upload/${currentUser.filename }" width="80%" height="80%">
		</div>


		<div class="panel-body" style="margin-top: 80px;">
			<div class="h2 text-center">文章</div>
			<form class="form-horizontal" action="add.do" method="post">
				<div class="form-group">
					<label class="control-label col-md-2">题目</label>
					<div class="col-md-8">
						<input type="text" class="form-control" name="title" id="title"
							placeholder="请输入题目" />
					</div>
				</div>

				<div class="form-group">
					<label class="control-label col-md-2">文章</label>
					<div class="col-md-8">
						<textarea class="form-control" rows="8" name="content"
							id="content" placeholder="请输入文章"></textarea>
					</div>
				</div>

				<div class="form-group">
					<div class="col-md-offset-2 col-md-8">
						<button type="submit" class="btn btn-primary btn-block">提交</button>
					</div>
				</div>

			</form>
		</div>
	</div>

	<script type="text/javascript">
		var container;
		var camera, scene, projector, renderer;

		var PI2 = Math.PI * 2;
		var radius = 600;
		var theta = 0;
		var programFill = function(context) {

			context.beginPath();
			context.arc(0, 0, 1, 0, PI2, true);
			context.closePath();
			context.fill();

		}

		var programStroke = function(context) {

			context.lineWidth = 0.05;
			context.beginPath();
			context.arc(0, 0, 1, 0, PI2, true);
			context.closePath();
			context.stroke();

		}

		var mouse = {
			x : 0,
			y : 0
		}, INTERSECTED;

		init();
		animate();
	</script>
	<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
	<script type="text/javascript" src="../js/bootstrap.min.js"></script>
	<script type="text/javascript" src="../js/index.js"></script>
</body>
</html>